package com.cdh.vod.service;

import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;
import java.util.List;

public interface VodService {
    /**
     * 上传视频
     * @param is
     * @param originalFileName
     * @return
     */
    String uploadVideo(InputStream is,String originalFileName);

    /**
     * 删除视频
     * @param videoId
     */
    void removeVideo(String videoId);

    /**
     * 批量删除视频
     * @param videoList
     */
    void removeBatchByVideoList(List<String> videoList);

    /**
     * 获取阿里云视频播放凭证
     * @param videoSourceId
     * @return
     * @throws ClientException
     */
    String getPlayAuth(String videoSourceId) throws ClientException;
}
